package org.example.traffic.questions;

import org.example.traffic.organization.Organization;
import org.example.traffic.questions.Questions;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface QuestionsRepository extends JpaRepository<Questions, Integer> {
    // 根据题目文本进行模糊查询
    List<Questions> findByQuestionTextContaining(String questionText);
    // 分页查询所有视频
    Page<Questions> findAll(Pageable pageable);
}
